import request from '@/utils/request';

/**
 * 获取员工分析数据
 */
export const getAttendanceTable_API = async () => await request.get('/api/getAttendanceTable');

/**
 * 获取员工分析数据列表
 */
export const getAttendanceList_API = async (params:any) => await request.get('/api/getAttendanceList', params);

/**
 * 添加员工分析数据
 */
export const addAttendance_API = async (params:any) => await request.post('/api/addAttendance', params);

/**
 * 删除员工分析数据
 */
export const deleteAttendance_API = async (params) => await request.delete(`/api/deleteAttendance/${params.attendanceId}`);


export default {
  getAttendanceTable_API,
  getAttendanceList_API,
  addAttendance_API,
  deleteAttendance_API
}